package lesson4;

public class Demo1 {
    public static void main(String[] args) {
        int num = 100;
        Driver person = new Driver("张三",20);
        changeValue(num);
        System.out.println(num);
        //222 222 222 100 100 222 100 100 222 222 222 100 100 100 100 100
        person.printInfo();
        changeValue(person);
        person.printInfo();


    }
    public static void changeValue(int value){
        value = 222;
    }

    public static void changeValue(Driver value){
        value.setAge(222);
    }

}
